Re-exports

pub use pure_move::PureMove;

Modules

Defines things in the absolute term: “which piece lies in the square LIA?”/絶対座標ベース。「LIAのマスにはどの駒がある?」という話をする
According to https://github.com/cetkaik/cetkaik_yhuap_move_candidates/pull/7, this function was a bottleneck that accounted for roughly fifty percent of all the runtime in an attempt to implement an AI for this game. Hence, this module contains multiple implementations of this functions and test that they are equal.

Structs

Enums

Denotes the color of a piece/駒の色を表す。
Defines a perspective, with which you can transform between the absolute and the relative /どちらの視点で見ているかを表現する型。 視点を固定すると、相対座標表現と絶対座標表現を相互変換することができる。
Denotes the profession of a piece/駒の職業を表す。

Functions

Returns the list of all possible locations that a piece can move to / step on.
Spits out all the possible opponent (downward)’s move that is played from the hop1zuo1 onto the board.
Spits out all the possible opponent (downward)’s move that is played by moving a piece on the board, not from the hop1zuo1.
Converts relative::Board into absolute::Board. /relative::Boardabsolute::Board に変換する。
Converts relative::Coord into absolute::Coordrelative::Coordabsolute::Coord に変換する。
Converts relative::Field into absolute::Field. /relative::Fieldabsolute::Field に変換する。
Converts relative::Piece into absolute::Piecerelative::Pieceabsolute::Piece に変換する。
Converts relative::Side into absolute::Side. /relative::Sideabsolute::Side に変換する。
Converts absolute::Board into relative::Board. /absolute::Boardrelative::Board に変換する。
Converts absolute::Coord into relative::Coordabsolute::Coordrelative::Coord に変換する。
Converts absolute::Field into relative::Field. /absolute::Fieldrelative::Field に変換する。
Converts absolute::Piece into relative::Piece. /absolute::Piecerelative::Piece に変換する。
Converts absolute::Side into relative::Side. /absolute::Siderelative::Side に変換する。